package com.swancloud.model.network.v20210120.lbaasv2;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Provisioning status of load balancer v2 object
 */
public enum LbV2ProvisioningStatus {
    ACTIVE,
    DELETED,
    ERROR,
    PENDING_CREATE,
    PENDING_UPDATE,
    PENDING_DELETE;

    @JsonCreator
    public static LbV2ProvisioningStatus forValue(String value) {
        if (value != null) {
            for (LbV2ProvisioningStatus s : LbV2ProvisioningStatus.values()) {
                if (s.name().equalsIgnoreCase(value)) {
                    return s;
                }
            }
        }
        return LbV2ProvisioningStatus.ERROR;
    }
}
